//供应管理---------------------------

import Supply from "@/views/Supply";
import SupFollow from "@/views/Supply/SupFollow";
import SupManage from "@/views/Supply/SupManage";

export default [
  {
    path: "/supply",
    name: "supply",
    meta: {
      title: "供应管理",
    },
    component: Supply,
    children: [
      {
        path: "supManage",
        name: "supManage",
        meta: {
          title: "供应商管理",
        },
        component: SupManage,
      },
      {
        path: "addSupplier",
        name: "addSupplier",
        meta: {
          title: "添加供应商",
        },
        component: () => import("../views/Supply/SupManage/addForm.vue"),
      },
      {
        path: "editSupplier",
        name: "editSupplier",
        meta: {
          title: "编辑供应商",
        },
        component: () => import("../views/Supply/SupManage/editForm.vue"),
      },
      {
        path: "supFollow",
        name: "supFollow",
        meta: {
          title: "供应商跟进",
        },
        component: SupFollow,
        // children: [
        //   {
        //     path: "/",
        //     name: "followHome",
        //     meta: {
        //       title: "供应商跟进",
        //     },
        //     component: () =>import("../views/Supply/SupFollow/home.vue"),
        //   },
        // ],
      },
      {
        path: "addFollow",
        name: "addFollow",
        meta: {
          title: "添加跟进",
        },
        component: () => import("../views/Supply/SupFollow/addForm.vue"),
      },
      {
        path: "editFollow",
        name: "editFollow",
        meta: {
          title: "编辑跟进",
        },
        component: () => import("../views/Supply/SupFollow/editForm.vue"),
      },
    ],
  },
];
